package com.weighing.system.domain.server;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 工单主表（ppProduceOrder）
 */
@Data
@TableName("ppProduceOrder")
public class ProduceOrder {

    @TableId(value = "BillNo", type = IdType.INPUT)
    private String billNo; // 工单号

    @TableField("BillDate")
    private String billDate; // 工单日期

    @TableField("MaterialId")
    private String materialId; // 母件编号

    @TableField("MaterialSpec")
    private String materialSpec; // 母件规格

    @TableField("ProduceState")
    private String produceState; // 生产状态

    @TableField("ProduceQty")
    private Double produceQty; // 生产数量

    @TableField("CurrentState")
    private String currentState; // 工单状态

    /**
     * 称重主表(未完成)
     */
    @TableField(exist = false)
    private List<WeighingMaster> weighingMasterList;

    /**
     * 称重主表(已完成)
     */
    @TableField(exist = false)
    private List<WeighingMaster> weighingMasterListFinished;

    /**
     * 称重明细信息
     */
    @TableField(exist = false)
    private List<WeighingDetail> weighingDetailList;

    @TableField(exist = false)
    private List<ProduceOrderDetail> details; // 明细列表

}
